package com.jsz.peini.common.util.alipay;

import java.util.ResourceBundle;

/* *
 *类名：AlipayConfig
 *功能：基础配置类 
 *详细：设置帐户有关信息及返回路径
 *版本：3.3
 *日期：2012-08-10
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。

 *提示：如何获取安全校验码和合作身份者ID
 *1.用您的签约支付宝账号登录支付宝网站(www.alipay.com)
 *2.点击“商家服务”(https://b.alipay.com/order/myOrder.htm)
 *3.点击“查询合作者身份(PID)”、“查询安全校验码(Key)”

 *安全校验码查看时，输入支付密码后，页面呈灰色的现象，怎么办？
 *解决方法：
 *1、检查浏览器配置，不让浏览器做弹框屏蔽设置
 *2、更换浏览器或电脑，重新登录查询。
 */

public class AlipayConfig {
	
	static ResourceBundle PropertiesUtil = ResourceBundle.getBundle("config");
	
	public static String appId = "2017012305367921";

	// ↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	// 合作身份者ID，以2088开头由16位纯数字组成的字符串
	//public static String partner = "2088912847742673";
	public static String partner = PropertiesUtil.getString("alipay_partner");
	
	public static String seller_email = PropertiesUtil.getString("alipay_seller");
	// 商户的私钥
	//public static String private_key = "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBANH6fkBt19+DUt6Fht0lv/pW60y/ZNpuq3u1O5IMLHCRsDJSrc7PZdo+lnfDU0gZm7B5B8Gi3KeWYQRrQRagsuhj5PvWch8cqbw5XlNNfp660Xuhcwt+XASIwljMj27JuT2RMQCTpcbkCJYRYG1jSgITvkGITlqQKNmA3C3eHQk/AgMBAAECgYEAuJfsEZv/IUGDwpfEPfoH0X5EEQ5ZDSYpnvFuUzBciQGq0jKZFayCL+DByrtuJX5NvlBIH1SbgsDSvV3EtK3FWKonCTjlOx41ZingKIoOwma2xUs72pZ5LfOWzlEjfx9iDZi1no2sl7tryLYxRUdZD3yFOdEbtFH5iDI5r+Om7NECQQD7k3d8DTKAZhHReRCDnXOJBX7CEUZqASgg7SNwtFnxnaNY0id2VLIfDPaNZ/BXjkXk7If9gIssSqkJNF2N1BH9AkEA1avDtz2izwFXo1ipgB0rfXiTsHIs7/AqPbTVoZc9LVgXDHbzwpQANuLhwd3m1u+PDI7HkGDICIfhcpu+us5+6wJBALEbAr3RKKFdueOG4ApX+PMYbEFBGhocUFzFtPJt9Pf0qv8ni2Jxg6f6X0PzTS7GWQwtPBtJuDBpKxDwzX/AMR0CQQCD71qbRAjKz2Zg63dGLzzSbeir8+RBh8ddcNLUw4E4BYO945lilWaIfZGu1qkaILPwqh0ZzljVw6l2zip4SNdfAkEAkGxfToURAHbHD6LeXmtNVhBjP6vqllnuvi+VSXAgdN2mnthe8xBAHAAbLjb1doaDOKA4q2sIJPVT6FSngTVfBg==";
	//public static String private_key = PropertiesUtil.getString("alipay_privatekey");
	public static String private_key = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANthThMYvb2W+1wbXukDMrcUvSreYOQyzy56We7kMPO2UTCvXWNqRcR8w6SUerdrYcqWFBF7tyhUAKtEWR+xxbOaJaA2zGLS9az7qW5Gg+R9+09pLLNBOkErIkQ7F7F7K3jBKfzNARs2eo67h1lKQIAE4fYt2GkJ+t70rRcLpclPAgMBAAECgYBw5gem/kGPUybyhMd4RQQRgiPD7wOQDLHgqmij711d3sKzulvmMKfM8aRBi4QH5sRB3LBhOvjMUUay3Q68p+Ekkyz8AwU4O5Z/+E3ixfw4ri5l5JWmqCRE2YZjbk+Ue+0koccRkmal/gd+ArzS6VZ4RCM5bZP8F7nOninx09WmmQJBAP7PzZskVM6KdyFgioWkVZykBQP/mYfM6n11cKuTEZLXg5tBzPkPzAIbMfv1pzCELlC5PhJKkgQwMHR39i4gh1MCQQDcZzQD2upzRyrHouVB3SWdNZa/K8FSLRBBs1EGH/pheRAIohwoYEcGTY4VemF7a66koB5pd0is3SV46K+aiiKVAkEA2pM0gmVK3hUGlbnzeSn7Si+kIcbqUwQjDVVlPbgdNgHqYY6zHd5AGHptiP0y2jo4ZIRSS2xuDmur1OxmXzEGAwJAWhbFKB4/XsdkMR3gX7+pNE1HRPT5nEFXN8O4BqzjhxwY9a5tnANehLEGtrjDR9OIGzpns+xSBHaQbo+N17lG0QJBAPqjteK9TM3t20HzYSNDD21hcKsbSMnmr4C+7rC2GMJ9GCdlkaSw5lJiUbQemsyfFuFUQmJzoEOR9YEWr37P9LQ=";
	
	// 支付宝的公钥，无需修改该值
	public static String ali_public_key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";
	//public static String ali_public_key = PropertiesUtil.getString("alipay_publickey");
	
	// ↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

	// 调试用，创建TXT日志文件夹路径
	public static String log_path = "C:\\alipay\\";

	// 字符编码格式 目前支持 gbk 或 utf-8
	public static String input_charset = "utf-8";

	// 签名方式 不需修改
	public static String sign_type = "RSA";

}
